#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int k, m, n;
	for (k = 0, m = 1; m < 4; m++)

	{

		for (n = 1; n < 5; n++)

			if (m * n % 3 == 0) continue;

		k++;

	}

	printf("%d", k);
	return 0;
}
